#ifndef _UNIT_H__
#define _UNIT_H__


#include <sstream>
#include <string>

class Unit
{

public:
   int convertToUnit(int quantity, const Unit& unit)const;
   int convertFromBaseUnit( int quantity ) const;
   friend std::ostream & operator <<(std::ostream & ostr, const Unit &unit);

protected:
   Unit(const Unit &unit){}
   Unit(int ratio, std::string);

private:
   int ratioToBase_m;
   std::string name_m;
 
};


#endif
